//
//  UIViewController+Networking.h
//  muscleLife
//
//  Created by xalo on 16/4/29.
//  Copyright © 2016年 HeavenAndHell. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^finishedBlock)(NSDictionary* dictionary);
typedef void(^failureBlock)(NSError* error);

typedef void(^mobFinishBlock)(MOBAResponse *response);
@interface UIViewController (Networking)

-(void)requsetDataWithUrl:(NSString*)url parameters:(NSDictionary*)parameter finished:(finishedBlock)finish failure:(failureBlock)failure;

-(void)getRequestDataWithUrl:(NSString*)url parameters:(NSDictionary*)parameter finished:(finishedBlock)finish failure:(failureBlock)failure;
-(void)acquireSourceDataWithKeyWord:(NSString*)keyWord page:(NSString*)page size:(NSString*)sized finished:(mobFinishBlock)block;
@end
